<template>
  <!-- 放置html代码 -->
  <div class="nav">
    <div v-for="(item, index) in navData" :key="index">
      <router-link :to="item.path">{{ item.title }}</router-link>
    </div>
  </div>
  <hr>
  <div>
    <router-view></router-view>
  </div>
  
  <img alt="Vue logo" src="./assets/img/logo.png">
  <Report msg="Welcome to Your Vue.js App" />
</template>

<script>
// <!-- 放置js代码 -->
import { navData } from '@/untils/nav'

export default {
  name: 'App',
  components: {
  },
  setup() {
    return {
      navData
    }
  }
}
</script>


<style>
/* <!-- 放置css样式代码 --> */
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

.nav {
  display: flex;
  justify-content: space-around;
  background-color: #faf8f8;
  padding: 10px;
  border-bottom: 1px solid #dee2e6;
}

.nav a {
  text-decoration: none;
  color: #403436;
  font-weight: bold;
}

.nav a:hover {
  color: #007bff;
}
</style>
